{
  "projects": {
    "project": [
    {{foreach from=$projects item=project name=feprojects}}
	{{assign var=index value=$project->getId()}}
    {
      "id": "{{$project->getId()}}",
      "title": "{{$project->getName()}}",
      "date": "{{$project->getCreationDate()}}",
      "users": "{{$users.$index}}"
    }{{if $smarty.foreach.feprojects.last}} {{else}},{{/if}}
      {{/foreach}}
    ]
  }
}